﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleServer.Net
{
    public class MsgHandler
    {
        //处理密钥
        public static void MsgSecret(ClientSocket clientSocket, MsgBase msgBase)
        {
            MsgSecret msgSecret = (MsgSecret)msgBase;
            msgSecret.Secret = ServerSocket.SecretKey;
            Debug.Log("服务端下发的数据：" + msgSecret.Secret);
            ServerSocket.Send(clientSocket, msgSecret);
        }
    }
}
